package com.xiaojie.persistence.core;

import java.io.InputStream;

/**
 * @author  小杰
 * @date 2021/5/5
 * @description 资源类,资源加载
 */
public class Resources {

    /**
     * 根据文件路径将配置文件加载为输入流
     * @param path
     * @return
     */
    public static InputStream getResourceAsStream(String path) {
        InputStream inputStream =  Resources.class.getClassLoader().getResourceAsStream(path);
        return inputStream;
    }

}
